package com.cdhkppm.service.impl;

import com.cdhkppm.entity.ProjectProductRelationDO;
import com.cdhkppm.mapper.ProjectProductRelationMapper;
import com.cdhkppm.service.ProjectProductRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigInteger;
import java.util.List;

/**
 * @author yfq
 * @apiNote
 */

@Service
public class ProjectProductRelationServiceImpl implements ProjectProductRelationService {

    @Resource
    private ProjectProductRelationMapper projectProductRelationMapper;
    @Override
    public void add(ProjectProductRelationDO entity) {
        projectProductRelationMapper.insert(entity);
    }

    @Override
    public void batchAdd(List<ProjectProductRelationDO> list) {
        projectProductRelationMapper.batchInsert(list);
    }

    @Override
    public void delete(String oid) {
        projectProductRelationMapper.deleteById(oid);
    }

    @Override
    public void batchDelete(List<BigInteger> ids) {
        projectProductRelationMapper.batchDelete(ids);
    }
}
